package com.kantboot.business.gc.admin.controller;

import com.kantboot.business.gc.domain.dto.BusGcTypeSearchDTO;
import com.kantboot.business.gc.domain.entity.BusGcType;
import com.kantboot.business.gc.service.IBusGcTypeService;
import com.kantboot.util.common.result.RestResult;
import com.kantboot.util.core.controller.BaseAdminController;
import com.kantboot.util.core.param.PageParam;
import com.kantboot.util.core.result.PageResult;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 游戏类型的管理端控制器
 */
@RestController
@RequestMapping("/business/gc/admin/type")
public class BusGcTypeControllerOfAdmin
        extends BaseAdminController<BusGcType, Long> {

    @Resource
    private IBusGcTypeService service;

    @RequestMapping("/getBodyData")
    public RestResult<PageResult> getBodyData(@RequestBody PageParam<BusGcTypeSearchDTO> pageParam) {
        return RestResult.success(service.getBodyData(pageParam), "getSuccess", "获取成功");
    }

}
